{literal} {/literal}
| التصنيف | اليوم | مبيعات | {if $buyPriceType == "first"}تكلفة البيع بسعر الشراء | {/if} {if $buyPriceType == "last"}تكلفة البيع باخر سعر شراء | {/if} {if $buyPriceType == "mean"}تكلفة البيع بمتوسط سعر الشراء | {/if} {if $buyPriceType == "last_discount"}تكلفة البيع باخر سعر شراء مع الخصم | {/if} {if $buyPriceType == "mean_discount"}تكلفة البيع بمتوسط سعر الشراء مع الخصم | {/if} {if $buyPriceType == "overallAverage"}تكلفة البيع بالمتوسط العام | {/if}مرتجعات | {if $buyPriceType == "first"}تكلفة المردود بسعر الشراء | {/if} {if $buyPriceType == "last"}تكلفة المردود باخر سعر شراء | {/if} {if $buyPriceType == "mean"}تكلفة المردود بمتوسط سعر الشراء | {/if} {if $buyPriceType == "last_discount"}تكلفة المردود باخر سعر شراء مع الخصم | {/if} {if $buyPriceType == "mean_discount"}تكلفة المردود بمتوسط سعر الشراء مع الخصم | {/if} {if $buyPriceType == "overallAverage"}تكلفة المردود بالمتوسط العام | {/if}ربح | {assign var=ST value=0} {assign var=SC value=0} {assign var=SCRow value=0} {assign var=SP value=0} {assign var=RST value=0} {assign var=RSC value=0} {assign var=RSCRow value=0} {assign var=RSP value=0} {foreach $quickProfitDay as $data}
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {$data->productCatName} | {$data->theDate} | {$data->sellVal}{assign var=ST value=$ST+$data->sellVal} | {if $buyPriceType == "first"}{$data->sellCostBuyPrice}{assign var=SCRow value=$data->sellCostBuyPrice} | {/if} {if $buyPriceType == "last"}{$data->sellCostLastBuyPrice}{assign var=SCRow value=$data->sellCostLastBuyPrice} | {/if} {if $buyPriceType == "mean"}{$data->sellCostMeanBuyPrice}{assign var=SCRow value=$data->sellCostMeanBuyPrice} | {/if} {if $buyPriceType == "last_discount"}{$data->sellCostLastBuyPricewithDiscount}{assign var=SCRow value=$data->sellCostLastBuyPricewithDiscount} | {/if} {if $buyPriceType == "mean_discount"}{$data->sellCostMeanBuyPricewithDiscount}{assign var=SCRow value=$data->sellCostMeanBuyPricewithDiscount} | {/if} {if $buyPriceType == "overallAverage"}{$data->sellCostOverAllAveragePrice}{assign var=SCRow value=$data->sellCostOverAllAveragePrice} | {/if}{$data->returnSellVal}{assign var=RST value=$RST+$data->returnSellVal} | {if $buyPriceType == "first"}{$data->returnSellCostBuyPrice}{assign var=RSCRow value=$data->returnSellCostBuyPrice} | {/if} {if $buyPriceType == "last"}{$data->returnSellCostLastBuyPrice}{assign var=RSCRow value=$data->returnSellCostLastBuyPrice} | {/if} {if $buyPriceType == "mean"}{$data->returnSellCostMeanBuyPrice}{assign var=RSCRow value=$data->returnSellCostMeanBuyPrice} | {/if} {if $buyPriceType == "last_discount"}{$data->returnSellCostLastBuyPricewithDiscount}{assign var=RSCRow value=$data->returnSellCostLastBuyPricewithDiscount} | {/if} {if $buyPriceType == "mean_discount"}{$data->returnSellCostMeanBuyPricewithDiscount}{assign var=RSCRow value=$data->returnSellCostMeanBuyPricewithDiscount} | {/if} {if $buyPriceType == "overallAverage"}{$data->returnSellCostOverAllAveragePrice}{assign var=RSCRow value=$data->returnSellCostOverAllAveragePrice} | {/if}{$data->sellVal - $SCRow - ($data->returnSellVal- $RSCRow)} |
| الاجمالى | {$ST} | {$SC} | {$RST} | {$RSC} | {$SP - $RSP} |